package com.sky.service;

import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

public interface StatisticsService {
    /**
     * 营业额统计
     * @param begin
     * @param end
     * @return
     */
    TurnoverReportVO turnover(LocalDate begin, LocalDate end);

    /**
     * 用户量统计
     * @param begin
     * @param end
     * @return
     */
    UserReportVO UserReport(LocalDate begin, LocalDate end);

    /**
     * 订单统计
     * @param begin
     * @param end
     * @return
     */
    OrderReportVO OrderReport(LocalDate begin, LocalDate end);

    /**
     * 销量排行TOP10接口
     * @param begin
     * @param end
     * @return
     */
    SalesTop10ReportVO SalesTop10(LocalDate begin, LocalDate end);

    /**
     *导出Excel报表接口
     */
    void export(HttpServletResponse response);
}
